<?php    

add_filter('get_sample_permalink_html', 'gt_edit_perm', '',4);
function gt_edit_perm($return, $id, $new_title, $new_slug){
	global $post;
	if($post->post_type == 'tour')
	{
		$ret2 = preg_replace('/<span id="edit-slug-buttons">.*<\/span>|<span id=\'view-post-btn\'>.*<\/span>/i', '', $return);
	}
	return $ret2;
}

add_filter( 'script_loader_src', 'gt_remove_src_version' );
add_filter( 'style_loader_src', 'gt_remove_src_version' );
function gt_remove_src_version ( $src ) {
 global $wp_version;
 $version_str = '?ver='.$wp_version;
 $version_str_offset = strlen( $src ) - strlen( $version_str );
 if( substr( $src, $version_str_offset ) == $version_str )
    return substr( $src, 0, $version_str_offset );
 else
    return $src;
}
add_filter( 'login_errors', 'gt_remove_login_message');
function gt_remove_login_message($error) {
	return "Sei un cracker o un hacker? ^_^";
}

?>